<%@ Page language="c#" Codebehind="ParentFrameReload.aspx.cs" AutoEventWireup="false" Inherits="Sedna.Core.pages.Controls.ParentFrameReload" %>
<%@ Register TagPrefix="coreims" Namespace="Sedna.Core.Controls" Assembly="Sedna.Controls" %>
<!-- #Include virtual="~/Core/pages/include/innerPageHeader.html" -->
	<script language="javascript">
		
		function parentPostBack() {			
			var p = window.parent;
			if (p == null) {
				return;
			}
			page = new DocumentFramePage();
			page.frame.setOffState();
			
			var urlPathQuery = document.URL.split("?", 2);
			if (urlPathQuery.length > 1) {
				var urlQuery = urlPathQuery[1].split("=", 2);
				if (urlQuery.length > 1) {
					p.document.forms[0].elements[urlQuery[0]].value = urlQuery[1];
				}
			}
			
			p.page.postBack();
		}
		
		EventHandler.windowEventHandler.registerListener("load", {"onload":parentPostBack});
	</script>
<!-- #Include virtual="~/Core/pages/include/innerPageFooter.html" -->
